<%- include nav_header%>


		<div class="login">
			<div class="container">

				<div class="col-lg-5 col-sm-5 col-md-5 col-xs-7" style=" border-radius:10px;background-color: whitesmoke; height: 350px; margin-left: 25%;">
					<h3 style="margin-bottom: 20px; color:#1abc9c;">欢迎来到驴友之家</h3>
					<h4 style="margin-bottom: 20px; ">登录您的账户</h4>
                  
                  <%if(error){%>
                   	<h5 style="color: red;"> <%=error%></h5>
                  <%}%>
                  
				<div>
					<form class="bs-example bs-example-form" role="form" method="post" onsubmit="false" action="/dologin">
						<div class="input-group" style="margin-bottom: 20px; margin-left: 15%;">
							<span class="input-group-addon"><span class="glyphicon glyphicon-user" ></span></span>
							<input type="text" class="form-control" id="username" name="name" placeholder="username" style="width: 80%;">
						</div>
						<div class="input-group" style="margin-bottom: 20px; margin-left: 15%;">
							<span class="input-group-addon"><span class="glyphicon glyphicon-lock"></span></span>
							<input type="password" class="form-control" id="password" name="password" placeholder="password" style="width: 80%;">
						</div>
						<button class="btn btn-success" style="width: 70%; margin-bottom:20px ;" id="login1">登录</button><br />
						<span>
							<a href="" style="margin-right: 20%;">忘记密码？</a>
							<a href="/toregister">还没有账号？注册一个</a>
						</span>
                        </form>
						</div>
				</div>
			</div>
		</div>
		
		
	<%- include footer%>
	
	
		<style>
		.login {
			margin: 0;
			padding: 0;
			height: 500px;
			/*border: solid;*/
			
		}
		
		.container {
			/*border: solid;*/
			padding-bottom: 50px;
			margin-top: 100px;
			text-align: center;
			height: auto;
			
		}
        body{
            background: url('/images/7.jpg');
        }
	</style>
